Kukuh Syafaat [Mon, 14 Aug 2017 20:18:42 +0000 (20:18 +0000)]
Update Indonesian translation
Kukuh Syafaat [Mon, 14 Aug 2017 20:17:43 +0000 (20:17 +0000)]
Update Indonesian translation
Matthias Clasen [Sun, 13 Aug 2017 19:16:11 +0000 (15:16 -0400)]
Redo emoji data slightly
No longer store variation sequences explicitly. Instead, put a 0
in the sequence where the modifiers will be inserted. This is more
compact, and it allows us to put variations directly into the
recent section.
Update the type of the recent-emoji setting to match these changes.
Timm Bäder [Mon, 14 Aug 2017 17:27:50 +0000 (19:27 +0200)]
popover: Remove double assignment
Daniel Mustieles [Mon, 14 Aug 2017 16:06:32 +0000 (16:06 +0000)]
Update Spanish translation
Timm Bäder [Mon, 14 Aug 2017 12:24:29 +0000 (14:24 +0200)]
gtkwindowprivate: Remove _gtk_window_keys_foreach
Unused outside of gtkwindow.c
Timm Bäder [Mon, 14 Aug 2017 12:24:10 +0000 (14:24 +0200)]
winodw: Remove _gtk_window_reposition prototype
It's never implemented.
Timm Bäder [Mon, 14 Aug 2017 11:01:22 +0000 (13:01 +0200)]
meson: Don't define G_ENABLE_CONSISTENCY_CHECKS unconditionally
We add it back later depending on the current buildtype.
Timm Bäder [Mon, 14 Aug 2017 10:20:42 +0000 (12:20 +0200)]
widget: Remove gtk_widget_get_border_allocation
Timm Bäder [Mon, 14 Aug 2017 10:12:09 +0000 (12:12 +0200)]
widget: Remove gtk_widget_get_content_allocation
Replace it where we still need something similar, e.g. in
gtk_widget_translate_coordinates
Timm Bäder [Mon, 14 Aug 2017 08:18:14 +0000 (10:18 +0200)]
widget: Remove gtk_widget_get_margin_allocation
It's not needed anymore with get_outer_allocation (which will be
replaced by something more appropriately named).
Jordi Mas [Sun, 13 Aug 2017 22:36:36 +0000 (00:36 +0200)]
Update Catalan translation
Fran Dieguez [Sun, 13 Aug 2017 22:19:01 +0000 (22:19 +0000)]
Update Galician translation
Daniel Boles [Sun, 13 Aug 2017 16:39:13 +0000 (17:39 +0100)]
convert-emoji: Don’t pointlessly do rest of loop
skip can never become FALSE again, so break as soon as it becomes TRUE.
Muhammet Kara [Sun, 13 Aug 2017 16:34:57 +0000 (16:34 +0000)]
Update Turkish translation
(cherry picked from commit
a6de59845ac247c309f19ebff5547229d0cd5ed2)
Timm Bäder [Sun, 13 Aug 2017 16:08:41 +0000 (18:08 +0200)]
meson: Add emoji data
Otherwise we crash at runtime.
Timm Bäder [Sun, 13 Aug 2017 16:01:34 +0000 (18:01 +0200)]
gsk: Add color shader sources to meson build files
Matthias Clasen [Sun, 13 Aug 2017 13:27:37 +0000 (09:27 -0400)]
Don't update headings in an idle
It is not necessary since flow box invalidation is
all synchronous currently. If that ever changes,
this code will need adjustment.
Matthias Clasen [Sun, 13 Aug 2017 13:24:50 +0000 (09:24 -0400)]
scrolled window: Don't leak timeout sources
We must only create a new source if there isn't one already,
otherwise we override the ID and leak the previous one.
Matthias Clasen [Sun, 13 Aug 2017 13:03:40 +0000 (09:03 -0400)]
Add names to more sources
This makes debugging mainloop-related issues more pleasant.
Matthias Clasen [Sun, 13 Aug 2017 11:49:57 +0000 (07:49 -0400)]
emoji: Fix a leak
We were leaking the list of recently used Emoji here.
Pointed out by Timm Bädert.
Matthias Clasen [Sun, 13 Aug 2017 11:49:13 +0000 (07:49 -0400)]
emoji: Start search on the first character
There is no need to wait for a longer prefix here.
We already display all the content anyway, it will
only get less.
Pawan Chitrakar [Sun, 13 Aug 2017 08:30:09 +0000 (08:30 +0000)]
Update Nepali translation
Pawan Chitrakar [Sun, 13 Aug 2017 08:08:44 +0000 (08:08 +0000)]
Update Nepali translation
Piotr Drąg [Sat, 12 Aug 2017 23:24:38 +0000 (01:24 +0200)]
Update Polish translation
Piotr Drąg [Sat, 12 Aug 2017 23:18:31 +0000 (01:18 +0200)]
Update POTFILES.skip
Matthias Clasen [Sat, 12 Aug 2017 23:06:00 +0000 (19:06 -0400)]
Fix the meson build
Matthias Clasen [Fri, 11 Aug 2017 16:25:35 +0000 (12:25 -0400)]
widget-factory: Add a use of show-emoji-icon
This also serves as a testcase for nested popovers
that was missing in widget-factory so far.
Matthias Clasen [Fri, 11 Aug 2017 16:09:55 +0000 (12:09 -0400)]
Add a testcase for the new Emoji chooser
For now, add it in testentryicons.
Matthias Clasen [Fri, 11 Aug 2017 16:05:24 +0000 (12:05 -0400)]
entry: Add support for an Emoji chooser
Add an "Insert Emoji" item to the context menu in entries.
We also add a show-emoji-icon property, which when set to
TRUE, will add an icon that can be clicked to bring up
the Emoji chooser.
Matthias Clasen [Fri, 11 Aug 2017 16:03:54 +0000 (12:03 -0400)]
Fix a problem with focus handling in modal popovers
When the popover is dismissed, we return the focus to
where it came from. However, by using gtk_widget_grab_focus,
we were messing up the selection if that widget happens to
be an entry. Special-case GtkEntry and use
gtk_entry_grab_focus_without_selecting to avoid this issue.
Matthias Clasen [Fri, 11 Aug 2017 15:54:15 +0000 (11:54 -0400)]
Add an Emoji chooser widget
Add a popover that shows color Emoji, with a search entry.
The recently-used Emoji are stored in a GSetting.
Matthias Clasen [Fri, 11 Aug 2017 15:47:02 +0000 (11:47 -0400)]
Add Emoji data
The json file is imported from the (MIT-licensed) emoji.json[0] node
module, which generates it from the emoji list published by the
Unicode Consortium.
This commit also adds a little tool to convert the data into
a compact GVariant, and the result of that conversion, which is
added to libgtk as a resource. The following commits will make use
of it.
[0] https://github.com/amio/emoji.json
Daniel Boles [Sat, 12 Aug 2017 20:07:22 +0000 (21:07 +0100)]
InfoBar: Fix wrong/uninit var use in code example
https://bugzilla.gnome.org/show_bug.cgi?id=786144
Daniel Boles [Sat, 12 Aug 2017 15:01:33 +0000 (16:01 +0100)]
Adwaita: Sync CSS files with current SASS
Daniel Boles [Tue, 8 Aug 2017 18:49:20 +0000 (19:49 +0100)]
LevelBar: Don’t pointlessly copy an allocation
now featuring the required comma :/
Timm Bäder [Sat, 12 Aug 2017 06:48:50 +0000 (08:48 +0200)]
widget: Remove private _gtk_widget_set_has_focus
The css state here is now handled in gtk_widget_set_focus_child
Matthias Clasen [Sat, 12 Aug 2017 13:46:06 +0000 (09:46 -0400)]
Revert "LevelBar: Avoid unnecessarily copying allocation"
This reverts commit
d5e25be9bcd6c1a9db74ee749fa8808ba55a5ca5.
It doesn't build.
Matthias Clasen [Sat, 12 Aug 2017 13:36:49 +0000 (09:36 -0400)]
Fix a bootstrapping problem without root windows
We create various windows during the initial creation of display
objects, which causes some bootstrapping issues when we try to
find the default screen to get its root window. To work around this,
pass the display object into gdk_window_new.
This is not an API change, since gdk_window_new is no longer public API.
Daniel Boles [Sat, 12 Aug 2017 13:09:09 +0000 (14:09 +0100)]
LevelBar: Avoid unnecessarily copying allocation
Just use the original allocation, instead of copying it and passing that
Matthias Clasen [Fri, 11 Aug 2017 23:52:29 +0000 (19:52 -0400)]
Remove an unused field
Nothing uses bubble_window, so it can go.
Matthias Clasen [Wed, 9 Aug 2017 01:05:19 +0000 (21:05 -0400)]
Drop the shape window example in testgtk
Not sure this can be rescued without root window coordinates.
It is also somewhat inherently X11-specific.
Matthias Clasen [Wed, 9 Aug 2017 00:27:46 +0000 (20:27 -0400)]
Remove root window getters from public API
These are now just used internally in GDK.
Matthias Clasen [Wed, 9 Aug 2017 00:31:00 +0000 (20:31 -0400)]
Make the xim module build without root getters
This is X specific code anyway, so no need to use
generic GDK api for this.
Matthias Clasen [Tue, 8 Aug 2017 23:49:29 +0000 (19:49 -0400)]
Stop passing root window to gdk_device_query_state
The backends do the right thing now.
Matthias Clasen [Tue, 8 Aug 2017 23:45:09 +0000 (19:45 -0400)]
Allow passing a NULL window to gdk_device_query_state
Interpret NULL as "root window" here - we only have one
screen nowadays, so there is no choice involved, and this
will let us avoid dealing with the root window in the
fontend code.
Matthias Clasen [Tue, 8 Aug 2017 19:43:03 +0000 (15:43 -0400)]
Drop root windows from some internal apis
_gdk_device_query_state was needlessly shuffling
root windows around.
Matthias Clasen [Tue, 8 Aug 2017 19:28:45 +0000 (15:28 -0400)]
Drop keynav for dnd
This is very much an easter egg, and it is the last place where
we use the root window in libgtk.
Lapo Calamandrei [Fri, 11 Aug 2017 14:25:40 +0000 (16:25 +0200)]
adwaita: remove min-<lenght> from levelbar blocks
It's not needed and causes issues, see for details:
https://bugzilla.gnome.org/show_bug.cgi?id=783649
Lapo Calamandrei [Fri, 11 Aug 2017 13:07:13 +0000 (15:07 +0200)]
adwaita: Remove menu margins
menu margins have been added has a hack to mitigate bug:
https://bugzilla.gnome.org/show_bug.cgi?id=591258 with gtk+4 this
doesn't work anymore on gtk+4, the margin should probably be moved
to the parent window node, but it's not selectable, commenting out
for now.
Piotr Drąg [Thu, 10 Aug 2017 22:05:26 +0000 (00:05 +0200)]
Update Polish translation
Timm Bäder [Wed, 9 Aug 2017 14:26:26 +0000 (16:26 +0200)]
widget: Remove gtk_widget_set_redraw_on_alloc
Since gtk+ draws more than the widget and allocates more size to it than
it knows about, this flag doesn't work anymore. Removing it (or setting
it to TRUE for widgets that used to set it to FALSE) fixes drawing
invalidation when these widgets get allocated a new size.
Timm Bäder [Wed, 9 Aug 2017 13:19:46 +0000 (15:19 +0200)]
GdkWindow: Remove gdk_window_new_input
Not needed anymore.
John Ralls [Tue, 8 Aug 2017 20:15:46 +0000 (23:15 +0300)]
Duplicate the TIC strings before NULLing the GObject data.
NULLing the data strings in GObject frees and invalidates the pointers
returned by g_object_get_data so we need our own copy of the values.
Daniel Boles [Tue, 8 Aug 2017 17:58:13 +0000 (18:58 +0100)]
Revert "levelbar: Don't underallocate block widgets"
This reverts commit
e25e1c54a44264de628fb3919fb47afd44e21ba5.
That commit causes a block always to be shown at the min side, even when
the value is 0, in which case, no fill should be shown.
https://bugzilla.gnome.org/show_bug.cgi?id=783649
Matthias Clasen [Tue, 8 Aug 2017 01:57:58 +0000 (21:57 -0400)]
3.91.2
Matthias Clasen [Tue, 8 Aug 2017 02:18:24 +0000 (22:18 -0400)]
Fix docs build
Daniel Boles [Mon, 7 Aug 2017 17:32:57 +0000 (18:32 +0100)]
Container: Don’t scroll to unset focus child coord
In gtk_container_real_set_focus_child(), we try to scroll to the
position of the new :focus-child if we have h or v adjustments.
gtk_widget_translate_coordinates() returns FALSE if neither widget is
realized or in other situations that cause output parameters x and y not
to be set. Thus, if the caller did not initialise x/y and uses them even
if the function returned FALSE, they are using uninitialised variables.
In gtk_container_real_set_focus_child(), we did not check the return
value but merrily went ahead and used x and y regardless. This is UB, as
revealed by Valgrind, as well as being pointless.
The trivial fix is to exit early if (!gtk_widget_translate_coordinates).
https://bugzilla.gnome.org/show_bug.cgi?id=776909
Daniel Boles [Mon, 7 Aug 2017 17:25:28 +0000 (18:25 +0100)]
Container: Fix scrolled coord in set_focus_child()
Commit
885bcd9fe4b6b4ecb003570ea0520cf42ec737a9 trampled the bit here
that is meant to translate between the nominated focus child and the
actual innermost one that is used for updating the h/v adjustments.
So, we need to save the passed focus child before diving into its
children, then translate and get allocations between them both. This
makes GTK+ 4 behave like GTK+ 3 again: instead of priv->focus_child and
focus_child, we now have focus_child and child, serving the roles of the
nominated focus child and its innermost focus child respectively.
This also ditches the unnecessary call to Widget:get_focus_child(), as
Container::set_focus_child() gets that same new child as an argument.
Daniel Boles [Mon, 7 Aug 2017 09:32:13 +0000 (10:32 +0100)]
AccelLabel: set_accel_closure() arg is nullable
Daniel Boles [Mon, 7 Aug 2017 09:27:52 +0000 (10:27 +0100)]
AccelLabel: set_accel_widget() arg is nullable
Matej Urbančič [Mon, 7 Aug 2017 08:07:50 +0000 (10:07 +0200)]
Updated Slovenian translation
Matej Urbančič [Mon, 7 Aug 2017 07:10:37 +0000 (09:10 +0200)]
Updated Slovenian translation
Fabio Tomat [Mon, 7 Aug 2017 06:04:19 +0000 (06:04 +0000)]
Update Friulian translation
Carlos Garnacho [Sun, 6 Aug 2017 20:17:27 +0000 (22:17 +0200)]
window: Fix traversal of popovers during picking
These need to be traversed in the opposite direction. Given the order is
opposite to rendering, use a GQueue so it's cheap to traverse/add either
way.
Daniel Boles [Sun, 6 Aug 2017 17:03:27 +0000 (18:03 +0100)]
HeaderBar: Use less clashing appmenu fallback icon
process-stop-symbolic is unintuitive if represented as a stop sign as in
Adwaita, and completely ambiguous if represented as a cross like the
window close button in other icon themes.
Instead, use application-x-executable, which is already used elsewhere
as a fallback if no specific icon can be found for the application.
https://bugzilla.gnome.org/show_bug.cgi?id=784624
Daniel Boles [Sun, 6 Aug 2017 16:42:17 +0000 (17:42 +0100)]
docs: gtk/running: Document the GTK_CSD env var
It was not documented before.
https://bugzilla.gnome.org/show_bug.cgi?id=778791#c1
Daniel Boles [Sun, 6 Aug 2017 16:35:07 +0000 (17:35 +0100)]
AccelLabel: Fix typos of Ctl to Ctrl
Daniel Boles [Sun, 6 Aug 2017 02:24:04 +0000 (03:24 +0100)]
icon-browser: Add missing document-edit icon
https://bugzilla.gnome.org/show_bug.cgi?id=777515
Daniel Boles [Sun, 6 Aug 2017 00:11:34 +0000 (01:11 +0100)]
gdkdisplay: Remove a pointless assignment
https://bugzilla.gnome.org/show_bug.cgi?id=784016
Matthias Clasen [Sat, 5 Aug 2017 23:31:52 +0000 (19:31 -0400)]
Enough with the beeping!
Don't beep when modifiers are released in entries.
This was an inadvertent change that snuck in with
the emoji support.
Also, don't beep while entering an emoji name.
There is entirely too much beeping here.
Matthias Clasen [Sat, 5 Aug 2017 22:17:29 +0000 (18:17 -0400)]
Use the right gettext domain
Most of our .ui files were still using the gtk30 domain,
despite the library having switched to gtk40. Fix this.
Daniel Boles [Sat, 5 Aug 2017 19:21:28 +0000 (20:21 +0100)]
AccelLabel: Fix displaying accel unichars >= 0x80
In GTK+ 2, the ch < 0x80 was ORd with klass->latin1_to_char, and that
was unconditionally set to TRUE in the class init function, so
effectively the ch < 0x80 never mattered before or served any purpose.
When klass->latin1_to_char was deleted from the class in commit
f760538f17673c5bd7fec792be2f1abf8148fc32, this check’s sense changed.
The resuls was that accel keyvals with gunichar value >= 0x80 stopped
being rendered as symbols, instead falling back to their keysym name.
Instead of recognisable symbols for these, we get raw, often obscure,
and untranslatable keysym names. This breaks accessibility as well as
client users who may be parsing such accels and migrating from GTK+ 2.
So, remove the < 0x80 to restore the behaviour from before said commit.
https://bugzilla.gnome.org/show_bug.cgi?id=783906
Daniel Boles [Sat, 5 Aug 2017 17:57:08 +0000 (18:57 +0100)]
CenterBox: minor tweaks to doc blurb
Daniel Boles [Sat, 5 Aug 2017 17:56:01 +0000 (18:56 +0100)]
CenterBox: Add missing nullable annotations
https://bugzilla.gnome.org/show_bug.cgi?id=785280
Daniel Boles [Sat, 5 Aug 2017 17:44:02 +0000 (18:44 +0100)]
CenterBox: Guard against directly including header
https://bugzilla.gnome.org/show_bug.cgi?id=785280
Kjell Ahlstedt [Sat, 5 Aug 2017 09:26:42 +0000 (11:26 +0200)]
centerbox: Add G_BEGIN_DECLS and G_END_DECLS
https://bugzilla.gnome.org/show_bug.cgi?id=785280
Matthias Clasen [Fri, 4 Aug 2017 04:54:15 +0000 (00:54 -0400)]
Add support for entering emoji by name
This commit adds some basic support for entering emoji by name
to GtkIMContextSimple. To begin an emoji sequence, use Ctrl-Shift-e
instead of Ctrl-Shift-u that is used for hex input. Otherwise, the
behavior is the same: you can can let go of the modifier keys and
end the sequence with space or enter, or hold on to the modifier
keys and end the sequence by releasing them.
Only a limited, fixed set of names is supported at this time, see
the GtkIMContextSimple docs for a full list.
Daniel Boles [Thu, 3 Aug 2017 23:18:13 +0000 (00:18 +0100)]
gskrendernodeimpl: Fix leak of cairo_pattern_t
It was not destroyed after setting it on the cairo_context_t, as it is
in every other case.
https://bugzilla.gnome.org/show_bug.cgi?id=785793
Daniel Boles [Thu, 3 Aug 2017 20:09:25 +0000 (21:09 +0100)]
Window: Also quote Window address in Popover error
This is symmetrical with how we already do that for the Popover, and it
could be useful for debugging.
Daniel Boles [Thu, 3 Aug 2017 19:42:54 +0000 (20:42 +0100)]
widget-factory: Add tooltip to Entry icon
just to show we can.
Daniel Boles [Thu, 3 Aug 2017 19:26:18 +0000 (20:26 +0100)]
Fix some nullable Returns annotations
based on reports and patches by Iñaki García Etxebarria:
https://bugzilla.gnome.org/show_bug.cgi?id=781246
https://bugzilla.gnome.org/show_bug.cgi?id=785423
Timm Bäder [Thu, 3 Aug 2017 16:24:42 +0000 (18:24 +0200)]
inspector: Fix object title label alignment
Re-center it after the center-child removal in GtkBox and the addition
of GtkCenterBox.
Daniel Boles [Thu, 3 Aug 2017 11:42:20 +0000 (12:42 +0100)]
GtkFixed: Update documentation intro
• Add GtkLayout as a @See_also since it includes fixed-pos functionality
• Drop mention of the long-gone Linux framebuffer port
• Explain how to work around the problems with RTL text
Marek Cernocky [Thu, 3 Aug 2017 09:51:09 +0000 (11:51 +0200)]
Updated Czech translation
Daniel Boles [Thu, 3 Aug 2017 09:13:52 +0000 (10:13 +0100)]
Layout: Tweak documentation blurb
Being addable to a ScrolledWindow is not interesting; now that SW
auto-adds a Viewport if needed, so can DrawingArea and any other widget.
Mention GtkFixed in case the reader just wants that bit of functionality
Timm Bäder [Thu, 3 Aug 2017 09:14:53 +0000 (11:14 +0200)]
entry: get_icon_area returns in entry coordinates
This fixes the popover positions in the gtk4-demo/popovers, and it also
just makes sense. Also document what the returned coordinates are
relatiev to.
Timm Bäder [Thu, 3 Aug 2017 09:03:39 +0000 (11:03 +0200)]
popover: Fix arrow position
Remove all the manual css margin handling since that's being done for us
automatically now.
Piotr Drąg [Wed, 2 Aug 2017 16:05:30 +0000 (18:05 +0200)]
Update POTFILES.in
Benjamin Otte [Wed, 2 Aug 2017 15:59:09 +0000 (16:59 +0100)]
eventbox: Remove
Benjamin Otte [Wed, 2 Aug 2017 15:58:47 +0000 (16:58 +0100)]
texthandle: Don't use GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:58:17 +0000 (16:58 +0100)]
testsuite: Don't use GtkEventBox in gestures test
Benjamin Otte [Wed, 2 Aug 2017 15:58:05 +0000 (16:58 +0100)]
a11y: Remove check for GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:55:25 +0000 (16:55 +0100)]
docs: Don't use GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:47:39 +0000 (16:47 +0100)]
testsuite: Remove GtkEventBox from a11y test
Benjamin Otte [Wed, 2 Aug 2017 13:50:19 +0000 (14:50 +0100)]
iconbrowser: Remove GtkEventBox usage
Benjamin Otte [Wed, 2 Aug 2017 12:59:26 +0000 (13:59 +0100)]
gtk-demo: Get rid of GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 12:49:36 +0000 (13:49 +0100)]
cellaccel: Get rid of GtkEventBox
Can't test the code atm because treeview editing is broken, let's hope
it works once that's fixed.
Benjamin Otte [Wed, 2 Aug 2017 12:12:17 +0000 (13:12 +0100)]
placessidebar: Remove EventBox usage
Benjamin Otte [Wed, 2 Aug 2017 11:12:58 +0000 (12:12 +0100)]
placesview: Remove event box usage